<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.util.Constants,com.hs.core.utils.*" pageEncoding="UTF-8"%>
<%@ page import ="cn.ac.cintcm.dataconverge.researchsubject.domain.*,cn.ac.cintcm.dataconverge.researcher.domain.*" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String subjectId = request.getParameter("subjectId");
AchievemanAchievement obj = (AchievemanAchievement)request.getAttribute("achObj");
%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>科研项目管理与数据汇交平台</title>  
	<script language="javascript" type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script>
	<script language="javascript" src="<%=basePath %>index/Scripts/script.js"></script>
	<script language="javascript" src="<%=basePath %>js/common.js"></script>
	<link href="<%=basePath %>index/Themes/com/style.css" type="text/css" rel="stylesheet"></link>
	<script src='<%=basePath%>dwr/engine.js'></script>
     <script src='<%=basePath%>dwr/util.js'></script> 
     <script src='<%=basePath%>dwr/interface/subject.js'></script>
    <script type="text/javascript" language="javascript">
      var achId = "<%=obj == null?"":obj.getId()%>";  
	function checkForm(){ 
	    var flag = false;
		if(isNull(form2.appStatus.value)){
			alert("请选择成果应用状态");
			form2.appStatus.focus();
			return false;
		} 
		 
		return true;
	} 
        
	function saveData(modId,tomodId){
		if(checkForm()){ 
		   form2.action = "<%=path%>/achieve.htm?action=saveData&modId="+modId+"&subjectId=<%=subjectId%>&tomodId="+tomodId;
		   form2.submit(); 
	   } 
	}
    function changeTop(){
         var obj = parent.frames("bannerFrame"); 
         obj.location.href="<%=path%>/achieve.htm?action=top&modId=4&achId=<%=obj==null?"":obj.getId() %>";
    }
	 
	
</script>  
</head>
<body class="rtm_body" scroll=yes>
<form name="form2" action="" method="post">
     
           <div style="margin-top:0px">
     <table id="Table9" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr valign="top"> 
                <td class="fw_ptmain_bd_05" align="left" style="height: 155px;">
                    
                      <table  cellspacing="0" cellpadding="0" width="100%" style="border-right: #9b9b9b 1px solid;
                        border-left: #9b9b9b 0px solid; border-bottom: #9b9b9b 1px solid" id="Table22"
                        border="0">
                        
                        <tr align="center">
                            <td valign="top">
                                <!--三部分内容-->
                                <div class="tab2_fim_div" id="navDiv10"> 
                        			 	<div id="tdForm"> 
		                                    <table border="0" cellpadding="0" cellspacing="1" width="100%"   class="dg_borderstyle">
		                                       
		                                        
		                                        <tr>
		                                            <td class="fim_l" width="10%">成果所属行业</td>
		                                            <td class="fim_r"  width="40%">   <input type="hidden" name="achId" value="<%=obj==null?"":obj.getId() %>" />
		                                           <select name="domain" style="width:100%">
														<OPTION value=""></OPTION>
														<option value="1" <%if(null != obj && "1".equals(obj.getDomain())){out.println(" selected");} %>>农、林、牧、渔、水利</option>
														<option value="2" <%if(null != obj && "2".equals(obj.getDomain())){out.println(" selected");} %>>工业</option>
														<option value="3" <%if(null != obj && "3".equals(obj.getDomain())){out.println(" selected");} %>>地质普查和勘探业</option>
														<option value="4" <%if(null != obj && "4".equals(obj.getDomain())){out.println(" selected");} %>>建筑业</option>
														<option value="5" <%if(null != obj && "5".equals(obj.getDomain())){out.println(" selected");} %>>交通运输、邮电通讯业</option>
														<option value="6" <%if(null != obj && "6".equals(obj.getDomain())){out.println(" selected");} %>>商业、饮食、物资供销和仓储业</option>
														<option value="7" <%if(null != obj && "7".equals(obj.getDomain())){out.println(" selected");} %>>房地产、公用事业居民和咨询服务业</option>
														<option value="8" <%if(null != obj && "8".equals(obj.getDomain())){out.println(" selected");} %>>卫生、体育、社会、福利业</option>
														<option value="9" <%if(null != obj && "9".equals(obj.getDomain())){out.println(" selected");} %>>教育、文化、艺术、广播和电视业</option>
														<option value="10" <%if(null != obj && "10".equals(obj.getDomain())){out.println(" selected");} %>>科学研究和综合技术服务业</option>
														<option value="11" <%if(null != obj && "11".equals(obj.getDomain())){out.println(" selected");} %>>金融、保险业</option>
														<option value="12" <%if(null != obj && "12".equals(obj.getDomain())){out.println(" selected");} %>>其它行业</option>
													</select>
		                                            </td> 
		                                             <td class="fim_l" width="10%">应用状态(<font color="red">＊</font>)</td>
		                                            <td class="fim_r"  >
		                                             <select id="appStatus" name="appStatus" style="width:100%">
														<option value="0" <%if(null != obj && "0".equals(obj.getAppstatus())){out.println(" selected");} %>>其它</option>
														<option value="1" <%if(null != obj && "1".equals(obj.getAppstatus())){out.println(" selected");} %>>稳定应用：初期应用阶段</option>
														<option value="2" <%if(null != obj && "2".equals(obj.getAppstatus())){out.println(" selected");} %>>稳定应用：中期应用阶段</option>
														<option value="3" <%if(null != obj && "3".equals(obj.getAppstatus())){out.println(" selected");} %>>稳定应用：成熟应用阶段</option>
														<option value="4" <%if(null != obj && "4".equals(obj.getAppstatus())){out.println(" selected");} %>>应用后停用</option>
														<option value="5" <%if(null != obj && "5".equals(obj.getAppstatus())){out.println(" selected");} %>>未应用</option>			
													</select></td> 
		                                        </tr>  
		                                         <tr>
		                                            <td class="fim_l" width="10%">转让条件及转让内容</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <input type="text" name="dealDesc" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getDealdesc()) %>" class="com_textbox" style="width:100%"/></td> 
		                                        </tr>  
		                                         <tr>
		                                            <td class="fim_l" width="10%">生产时间</td>
		                                            <td class="fim_r"  > 
		                                           <input type="text" class="Wdate" id="produceDate" value="<%=obj==null?"":Tools.getDateString(obj.getProducedate()) %>" style="width:99%" name="produceDate"  onFocus="WdatePicker({el:'produceDate',dateFmt:'yyyy-MM-dd'})" />
		                                            </td> 
		                                             <td class="fim_l" width="10%">推广时间</td>
		                                            <td class="fim_r"  >
		                                             <input type="text" class="Wdate" id="promoteDate" value="<%=obj==null?"":Tools.getDateString(obj.getPromotedate()) %>" style="width:99%" name="promoteDate"  onFocus="WdatePicker({el:'promoteDate',dateFmt:'yyyy-MM-dd'})" /></td> 
		                                        </tr> 
		                                         <tr>
		                                            <td class="fim_l" width="10%">推广形式</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <input type="radio" name="promoteManner" value="1" <%if(null != obj && "1".equals(obj.getPromotemanner())){out.println(" checked");} %>>产权转让 
													<input type="radio" name="promoteManner" value="2" <%if(null != obj && "2".equals(obj.getPromotemanner())){out.println(" checked");} %>>资金入股 
													<input type="radio" name="promoteManner" value="3" <%if(null != obj && "3".equals(obj.getPromotemanner())){out.println(" checked");} %>>技术入股 
													<input type="radio" name="promoteManner" value="4" <%if(null != obj && "4".equals(obj.getPromotemanner())){out.println(" checked");} %>>合作开发 
													<input type="radio" name="promoteManner" value="5" <%if(null != obj && "5".equals(obj.getPromotemanner())){out.println(" checked");} %>>技术服务 
													<input type="radio" name="promoteManner" value="0" <%if(null != obj && "0".equals(obj.getPromotemanner())){out.println(" checked");} %>>其它</td> 
		                                        </tr>  
		                                        <tr>
		                                            <td class="fim_l" width="10%">推广计划类别</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <input type="radio" name="proPlanType" value="1" <%if(null != obj && "1".equals(obj.getProplantype())){out.println(" checked");} %>>国家推广计划 
		                                            <input type="radio" name="proPlanType" value="2" <%if(null != obj && "2".equals(obj.getProplantype())){out.println(" checked");} %>>国家中医药管理局推广项目 
		                                            <input type="radio" name="proPlanType" value="3" <%if(null != obj && "3".equals(obj.getProplantype())){out.println(" checked");} %>>其它部委推广计划</td> 
		                                        </tr>  
		                                        <tr>
		                                            <td class="fim_l" width="10%">市场准入证明类别</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <input type="radio" name="permitType" value="1" <%if(null != obj && "1".equals(obj.getPermittypr())){out.println(" checked");} %>>新药 
		                                            <input type="radio" name="permitType" value="2" <%if(null != obj && "2".equals(obj.getPermittypr())){out.println(" checked");} %>>保健食品 
		                                            <input type="radio" name="permitType" value="3" <%if(null != obj && "3".equals(obj.getPermittypr())){out.println(" checked");} %>> 医疗器械 
		                                            <input type="radio" name="permitType" value="4" <%if(null != obj && "4".equals(obj.getPermittypr())){out.println(" checked");} %>>制药设备 
		                                            <input type="radio" name="permitType" value="0" <%if(null != obj && "0".equals(obj.getPermittypr())){out.println(" checked");} %>>其它</td> 
		                                        </tr>  
		                                        <tr>
		                                            <td class="fim_l" width="10%">技术转让范围</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <input type="radio" name="transferArea" value="1" <%if(null != obj && "1".equals(obj.getTransferarea())){out.println(" checked");} %>>允许出口 
		                                            <input type="radio" name="transferArea" value="2" <%if(null != obj && "2".equals(obj.getTransferarea())){out.println(" checked");} %>>限国内转让 
		                                            <input type="radio" name="transferArea" value="3" <%if(null != obj && "3".equals(obj.getTransferarea())){out.println(" checked");} %>>不转让</td> 
		                                        </tr>  
		                                        <tr>
		                                            <td class="fim_l" width="10%">知识产权形式</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <input type="radio" name="intelProForm" value="1" <%if(null != obj && "1".equals(obj.getIntelproform())){out.println(" checked");} %>>发明专利 
													<input type="radio" name="intelProForm" value="2" <%if(null != obj && "2".equals(obj.getIntelproform())){out.println(" checked");} %>>实用新型专利
													 <input type="radio" name="intelProForm" value="3" <%if(null != obj && "3".equals(obj.getIntelproform())){out.println(" checked");} %>>外观设计专利 
													 <input type="radio" name="intelProForm" value="4" <%if(null != obj && "4".equals(obj.getIntelproform())){out.println(" checked");} %>>软件著作权 
													 <input type="radio" name="intelProForm" value="0" <%if(null != obj && "0".equals(obj.getIntelproform())){out.println(" checked");} %>>其它</td> 
		                                        </tr>  
		                                         
		                                        <tr>
		                                            <td class="fim_l" width="10%">专利情况</td>
		                                            <td class="fim_r"  > 
		                                          <input type="radio" name="patent" value="1" <%if(null != obj && "1".equals(obj.getPatent())){out.println(" checked");} %>>未申请专利
													 <input type="radio" name="patent" value="2" <%if(null != obj && "2".equals(obj.getPatent())){out.println(" checked");} %>>已受理专利 
													 <input type="radio" name="patent" value="3" <%if(null != obj && "3".equals(obj.getPatent())){out.println(" checked");} %>>已授权专利
		                                            </td> 
		                                             <td class="fim_l" width="10%">专利号</td>
		                                            <td class="fim_r"  >
		                                             <input type="text" name="patentId" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getPatentid()) %>" class="com_textbox" style="width:100%"/></td> 
		                                        </tr> 
		                                         <tr>
		                                            <td class="fim_l" width="10%">经济效益</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <textarea rows="5"  class="com_textarea" cols=""   style="background-color: #F9F2A5;"  name="profit" style="width:100%;" ><%=obj==null?"":StringUtilTool.NULL2Blank(obj.getProfit()) %></textarea></td> 
		                                        </tr> 
		                                         <tr>
		                                        <td colspan=4> 
		                                        <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
				                                    <tr>
				                                        <td align="center">
				                                            <input type="button" value=" 保存 "   class="com_btn2"   onclick="saveData('4','4')" /> &nbsp;&nbsp;<input type="button" value=" 上一步 "   class="com_btn2"   onclick="saveData('4','3')" />&nbsp;&nbsp;<input type="button" value=" 下一步 "   class="com_btn2"   onclick="saveData('4','5')" /> 
				                                        </td>
				                                    </tr>
				                                </table>
                                                </td>
                                                </tr> 
		                                    </table>   
                               			</div> 
                                </div>
                            </td>
                        </tr>
                       
                    </table>
             	 </td>
              </tr>
           </table>
         </div> 
         </form>
         
</body>
</html> 
<script>
changeTop();

</script>